libxc: break xc_get_physmem out into os-dependent files
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 27 Jan 2011 19:03:42 +0000 (19:03 +0000)
committerChristoph Egger <Christoph.Egger@amd.com>
Thu, 27 Jan 2011 19:03:42 +0000 (19:03 +0000)
commite46432026803ad6f750db3b448d962dc20c656e9
tree2610b0faf51f482de46c85cb623076ff65bee2d7
parent921fb156d4bd70020211e377207f52e06cb12e16
libxc: break xc_get_physmem out into os-dependent files

NetBSD doesn't have sysconf(_SC_PHYS_PAGES).

Factor physmem() out into os-dependent files and rename it to
xc_get_physmem() so as not to pollute the namespace.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_dom_bzimageloader.c
tools/libxc/xc_linux.c
tools/libxc/xc_netbsd.c
tools/libxc/xc_private.h